﻿@model eShop.Web.Admin.Models.ReceiveModule

@section header{
    <title>入库列表</title>
    <link type="text/css" rel="stylesheet" href="/administration/css/site.css" />
    <link type="text/css" rel="stylesheet" href="/administration/css/style.css" />
    <script type="text/javascript" src="/administration/scripts/jquery.js"></script>
    <script type="text/javascript" src="/administration/scripts/showlist.js"></script>
    <script type="text/javascript">
        $(function () {
            $('.tablelist tbody tr:odd').addClass('odd');
        });
    </script>
}
@section body{
    <h1 class="rightH1">
        入库管理 &gt;&gt; 入库列表
        <div class="right">
            <a href="@Url.Action("add")" class="menuBT"><img src="/administration/images/add.jpg" />添加</a>
            @*<a href="@Url.Action("import")" class="menuBT"><img src="/administration/images/add.jpg" />导入</a>*@
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>
    @using (Html.BeginForm("receivelist", "receive"))
    {
        <div class="dataListSearch">
            <table height="32">
                <tbody>
                    <tr>
                        <td width="35"><img id="searchImg" src="/administration/images/search1.gif" /></td>
                        <td>
                            操作单号：
                        </td>
                        <td width="130">
                            @Html.TextBox("ReceiveNo", Model.ReceiveNo, new { height = "18" })
                        </td>
                        <td>
                            <input id="SearchUser" name="SearchUser" type="image" class="searchBut submit" src="/administration/images/s.jpg" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div style="padding-left:15px;">
            <table class="tablelist">
                <thead>
                    <tr>
                        <th align="left">操作单号</th>
                        <th align="left">操作日期</th>
                        <th align="left">入库仓库</th>
                        <th align="left">商品</th>
                        <th align="left">数量</th>
                        <th align="left">说明</th>
                        <th align="left">管理操作</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (DataRow row in Model.ReceiveList.Rows)
                    {
                        <tr>
                            <td>@row["receiveno"]</td>
                            <td>@row["receivedate"]</td>
                            <td>@row["stockmc"]</td>
                            <td>@row["pname"]</td>
                            <td>@row["receivenum"]</td>
                            <td>@row["remark"]</td>
                            <td>
                                @Html.ActionLink("[编辑]", "edit", new { rid = row["receiveId"] }, new { @class = "editOperate" })
                                @Html.ActionLink("[删除]", "del", new { rid = row["receiveId"] }, new { @class = "deleteOperate" })
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    }
}